<?php echo  $this->render("header") ?>
<form name="frmSubmit" method="get">
<input type="hidden" name="modify_table" value="<?php echo  $this->table ?>"/>
<input type="hidden" name="modify_id" value="<?php echo  $this->id ?>"/>
<table style="width:100% !important;width:94%;"  border="0" cellspacing="1" cellpadding="8" align="center">
<?php if(is_array($this->ft)){foreach($this->ft as $this->ftype=>$this->ftype_name) { ?>
<?php if(isset($this->fields[$this->ftype])){?>
  <tr class="tableHeader">
	<?php if('id'==$this->ftype){?>
    <?php } else { ?>
  	<td colspan="2">&nbsp;<?php echo  $this->ftype_name ?></td>
    <?php }?>
  </tr>
  <?php $this->index=0;; ?>
  <?php if(is_array($this->fields[$this->ftype])){foreach($this->fields[$this->ftype] as $this->one) { ?>
  <?php if('id'==$this->ftype){?>
  <?php } else { ?>
    <tr class="bg_<?php echo  $this->index++%2 ?>"> 
      <td align="right" width="100" valign="top"><?php echo  isset($this->map[$this->one['name']])?$this->map[$this->one['name']]:$this->one['name'] ?>：&nbsp;</td>
      <td align="left">
	<?php if('text'==$this->ftype){?>
	      <textarea name="<?php echo  $this->one['name'] ?>" rows="5" cols="60"/></textarea>
	<?php } else if('id'==$this->ftype) { ?>
	<!-- <input name="<?php echo  $this->one['name'] ?>" type="text" readOnly value="<?php echo  $this->record[$this->one['name']] ?>" size="60"/> -->
	<?php } else if('select'==$this->ftype) { ?>
	      <?php if('set'==$this->one['type']){?>
	      <select name="<?php echo  $this->one['name'] ?>[]" multiple>
	      <?php } else { ?>
	      <select name="<?php echo  $this->one['name'] ?>">
	      <?php }?>
		<?php echo  Utility::Option($this->one['extra'], $this->record[$this->one['name']]) ?>
	      </select>
	<?php } else { ?>
	      <input name="<?php echo  $this->one['name'] ?>" type="text" size="60"/>
	<?php }?>
      </td>
    </tr>
  <?php }?>
  <?php }}?>
<?php }?>
<?php }}?>
<tr class="bg_1">
	<td align="center" colspan="2"><input type="submit" value="提交"/>&nbsp;<input type="reset" value="重置"/></td>
</tr>

</table>
<?php echo  $this->render("footer") ?>
